// 主界面
;
define(function(require, exports, module) {
	'use strict';
	var util = require("util");
	var base = require("base");
	var topMenu = require("../topMenu/topMenu");
	var router = require("../hash/pageRouter");
	var leftMenu = require("../leftMenu/leftMenu");
	var footer = require("../footer/footer_main");
	var css_deliveryNoticeList = require("./deliveryNoticePrint.css");
	var dialog = require("dialog");
	var databind = require("databind");
	var constant = require("constant");
	var deliveryNoticeId;
	var tools = require("tools");
	
	var init = function() {
		deliveryNoticeId = base.getUrlParam("deliveryNoticeId");
		initEvent();
	};
	var initEvent = function() {
		tools.loadList("inquireDeliveryNoticeDetail.json",　$(".printContent"),　$("script"), {deliveryNoticeId: deliveryNoticeId}, function(){
			var d = new Date();
			var now = d.getFullYear() + "年" + (d.getMonth()*1 + 1*1) + "月" + d.getDate() + "日";
			$(".date").append(now);
			
			alert("请删除红色的字体,输入正确的信息");
			document.body.contentEditable='true';
			
			$(".print").unbind("click").click(function(){
				tools.printit($(".printContent"));
			});
		}, null);
	};


	return {
		init: init
	};
});